JBoss Community Archive (Read Only)

Graphene 1

Extended Commands

Graphene contains some common commands which are not part of the Selenium API.

These commands are accessible using GrapheneSelenium implements ExtendedTypedSelenium interface, defining all of these commands.

The extensions may be divided to two groups: extended commands and management methods.

Extended Commands

  • getCount - returns the number of elements that match the specified locator (replaces getXpathCount, defines behavior for all iterable locators)

  • getStyle - get current style value of element given by locator

  • scrollIntoView - aligns screen to top (resp. bottom) of element given by locator

  • mouseOverAt - simulates a user hovering a mouse over the specified element at specific coordinates relative to element

  • mouseOutAt - simulates a user hovering a mouse out of the specified element at specific coordinates relative to element

  • belongsClass - checks if element given by locator is member of CSS class given by className

  • isAttributePresent - verifies that the specified attribute is defined for the element

Management API

  • isStarted - indicates if selenium session was already successfully started

  • enableNetworkTrafficCapturing / isNetworkTrafficCapturingEnabled - configures if the network traffic should be recorded for Selenium session

  • doCommand - executes given command (exposes method publicly to allow advanced operations)

JBoss.org Content Archive (Read Only), exported from JBoss Community Documentation Editor at 2020-03-10 12:13:26 UTC, last content change 2012-03-16 14:25:42 UTC.